package com.example.testproj.lrucache;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.KeyEvent;
import android.widget.ImageView;

import com.example.testproj.R;

public class LruCacheActivity extends AppCompatActivity {

    private RecyclerView mRecyclerView;
    private RecyclerView.Adapter mAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lru_cache);
        mRecyclerView= (RecyclerView) findViewById(R.id.recyclerview);

        mRecyclerView.setLayoutManager(new GridLayoutManager(this,3));

        mAdapter = new ImageRecyclerViewAdapter(this);

        mRecyclerView.setAdapter(mAdapter);
    }
}
